package com.bingxue.edu.management.system.model.query;

import com.bingxue.edu.common.enums.OrgTypeEnum;
import com.bingxue.edu.common.enums.CommonStatusEnum;
import com.bingxue.edu.framework.mybatis.query.Query;
import com.bingxue.edu.framework.mybatis.query.QueryType;
import com.bingxue.edu.management.system.model.entity.Org;
import com.mybatisflex.annotation.TableRef;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 组织查询条件
 *
 * @author panbo
 * @since 2024/07/12 17:24
 */
@Data
@TableRef(Org.class)
@Schema(description = "组织查询条件")
public class OrgQuery {

    @Schema(description = "上级id")
    private String parentId;

    @Schema(description = "编码")
    @Query(type = QueryType.LIKE_LEFT)
    private String code;

    @Schema(description = "名称")
    @Query(type = QueryType.LIKE)
    private String name;

    @Schema(description = "enum-组织类型")
    @Query(type = QueryType.IN)
    private List<OrgTypeEnum> orgType;

    @Schema(description = "状态")
    private CommonStatusEnum status;
}
